package com.doradance.app.home;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.doradance.R;
import com.doradance.account.ParamKey;
import com.doradance.account.UrlCenter;
import com.doradance.account.utils.FragmentUtils;
import com.doradance.common.http.MyHttpRequest;
import com.doradance.entity.ActivityEntity;
import com.doradance.entity.FreeItemEntity;
import com.doradance.entity.IndexEntity;
import com.pachong.android.baseuicomponent.activity.BaseActivity;
import com.pachong.android.baseuicomponent.activity.SwipeListActivity;
import com.pachong.android.baseuicomponent.adapter.RecyclerViewBaseAdapter;
import com.pachong.android.framework.httprequest.UrlParams;
import com.pachong.android.framework.httprequest.responsecallbacks.ListDataRequestListener;

import butterknife.Bind;
import butterknife.ButterKnife;

public class FreeListActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initToolsBar();
        FreeListFragment freeListFragment = new FreeListFragment();
        FragmentUtils.addFirstFragment(getSupportFragmentManager(),R.id.fl_free,freeListFragment);
    }

    private void initToolsBar() {
        setTitle(getString(R.string.free_area));
        getCustomToolbar().addLeftImageButton(R.mipmap.back, new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }



    public static void start(Activity activty){
        Intent intent = new Intent(activty, FreeListActivity.class);
        activty.startActivity(intent);
    }

    @Override
    public View createDataView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.activity_free_list,null);
    }
}
